﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WcfService.DTO
{
    [DataContract]
    public class NguoiDungDTO
    {
        #region Thuộc tính
        private string maNguoiDung;


        private string email;
        private string ten;
        private int quyen;
        private int tinhTrang;
        #endregion Thuộc tính

        #region Hàm Getter/Setter
        [DataMember]
        public string MaNguoiDung
        {
            get { return maNguoiDung; }
            set { maNguoiDung = value; }
        }
        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        [DataMember]
        public string Ten
        {
            get { return ten; }
            set { ten = value; }
        }

        [DataMember]
        public int Quyen
        {
            get { return quyen; }
            set { quyen = value; }
        }

        [DataMember]
        public int TinhTrang
        {
            get { return tinhTrang; }
            set { tinhTrang = value; }
        }
        #endregion Getter/Setter

        #region Các hàm khởi tạo
        public NguoiDungDTO()
        {
            this.MaNguoiDung = "";
            this.email = "";
            this.ten = "";
            this.quyen = 0;
            this.tinhTrang = 0;
        }
        public NguoiDungDTO(NguoiDungDTO nd)
        {
            this.MaNguoiDung = nd.MaNguoiDung;
            this.email = nd.email;
            this.ten = nd.ten;
            this.quyen = nd.quyen;
            this.tinhTrang = nd.tinhTrang;
        }

        public NguoiDungDTO(string _ma,string _email, string _ten, int _quyen, int _tinhTrang)
        {
            this.MaNguoiDung = _ma;
            this.email = _email;
            this.ten = _ten;
            this.quyen = _quyen;
            this.tinhTrang = _tinhTrang;
        }
        #endregion Khởi tạo
    }
}